-
-
Notifications
You must be signed in to change notification settings - Fork 34k
gh-144316: Fix missing exception in _remote_debugging with debug=False #144442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
7d1bb63 to
0f2d244
Compare
cffe58f to
66b060d
Compare
Misc/NEWS.d/next/Library/2026-02-03-19-57-41.gh-issue-144316.wop870.rst
Outdated
Show resolved
Hide resolved
|
This macro is intended to add context to an exception not to be the actual cause of the error. Doing this will mask actual bugs in the code where we are not setting exceptions properly in places that should catch it and fail. Unfortunately this is not only is a partial fix but it will hide errors. The correct solution is finding the error paths that are not properly handling errors and fix there (and perhaps chain). |
|
@pablogsal Found |
picnixz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should instead add assert(PyErr_Occurred()) in _set_debug_exception_cause instead.
|
Please, stop updating the branch when there is nothing to do. It wastes CI resources and notifies everyone subscribed to the thread. See https://devguide.python.org/getting-started/pull-request-lifecycle/#update-branch-button. |
PyErr_NoMemory()call whenPyMem_RawMalloc()returnedNULL.PyErr_Format()calls before callingset_exception_causemacroset_exception_causemacro to assert an error is set.RemoteUnwinder.get_stack_traceis missing exceptions on some error code paths #144316